package ooday04;

public class Test2 {
    public static void test(Animal a){
        System.out.println("animal");
    }
    public static void test(Dog a){
        System.out.println("dog");
    }
    public static void test(HotDog a){
        System.out.println("hotdog");
    }
    public static void test3(double a){
        System.out.println("int");
    }
    public static void test3(short a){
        System.out.println("short");
    }
    public static void test3(long a){
        System.out.println("long");
    }
    public static void main(String[] args) {
        Test2.test(new HotDog());
        Test2.test3(52);
    }
}
